﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_set.aspx.cs" Inherits="backstage_admin_set" %>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        修改密码
    </title>
    <link href="css/skin.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" src="js/main.js"></script>

<script type="text/javascript" src="js/jquery.min.js"></script>

<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript">
    ///验证管理员表单
    function checkAdminSetForm() {
        var userName = document.getElementById("txtUserName");
        if (userName.value == "") {
            alert("请输入用户名！");
            userName.focus();
            return false;
        }
        var userPwd = document.getElementById("txtUserPwd");
        var againUserPwd = document.getElementById("txtAgainUserPwd");
        if (userPwd.value != "") {
            if (againUserPwd.value == "") {
                alert("请输入确认密码！");
                againUserPwd.focus();
                return false;
            }
            if (againUserPwd.value != userPwd.value) {
                alert("确认密码不一致！");
                againUserPwd.select();
                return false;
            }
        }
        var regu = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
        var email = document.getElementById("txtEmail");
        if (email.value == "") {
            alert("请输入邮箱！");
            email.focus();
            return false;
        }
        else if (email.value.match(regu) == null) {
            alert("请输入正确的邮箱！");
            email.select();
            return false;
        }
        return true;
    }
</script>

<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>
            <td class="td_left_top">
                <img alt="" src="images/left-top-right.gif" /></td>
            <td class="td_middle_top">
                <div class="left_topbg">
                    <div class="titlebt">
                        修改密码
                    </div>
                </div>
            </td>
            <td class="td_right_top">
                <img alt="" src="images/nav-right-bg.gif" /></td>
        </tr>
        <tr>
            <td class="td_left_middle">
            </td>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    用户名：</td>
                                <td class="td_content">
                                    <input id="txtUserName" runat="server" type="text" style="ime-mode:disabled" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    密码：</td>
                                <td class="td_content">
                                    <input id="txtUserPwd" runat="server" type="password" class="password" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    确认密码：</td>
                                <td class="td_content">
                                    <input id="txtAgainUserPwd" runat="server" type="password" class="password" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    邮箱：</td>
                                <td class="td_content">
                                    <input id="txtEmail" runat="server" type="text" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    姓名：</td>
                                <td class="td_content">
                                    <input id="txtName" runat="server" type="text" /></td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    部门：</td>
                                <td class="td_content">
                                    <input id="txtDepart" runat="server" type="text" /></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click" OnClientClick="return checkAdminSetForm();" /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>
            <td class="td_right_middle">
            </td>
        </tr>
        <tr>
            <td class="td_left_bottom">
                <img alt="" src="images/buttom_left2.gif" />
            </td>
            <td class="td_middle_bottom">
                <img alt="" src="images/buttom_bgs.gif" />
            </td>
            <td class="td_right_bottom">
                <img alt="" src="images/buttom_right2.gif" />
            </td>
        </tr>
    </table>
</body>
</html>
